package project.DAO;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import project.DO.isolateDo;

import java.util.List;

@Mapper
@Service
public interface isolateDAO {
    @Insert("insert into isolate(address,student,doctor,Status) values(#{address},#{student},#{doctor},#{status})")
    public void insertIsolate(String address,String student,String doctor,String status);
    @Select("select * from isolate")
    public List<isolateDo> isolateSelect();
    @Select("select * from isolate where address=#{address}")
    public List<isolateDo> isolateSelect1(String address);
}
